package com.struts.servlets;

import java.util.Date;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.apache.commons.beanutils.ConvertUtils;

import com.struts.utils.UtilDateConverter;

public class UtilDateConverterInitWithServlet extends HttpServlet {

	/**
	 * 注册java.util.Date装换器
	 */
	private static final long serialVersionUID = -8179025323876704959L;

	@Override
	public void init() throws ServletException {
		System.out.println("---------UtilDateConverterInitWithServlet.init()");
		ConvertUtils.register(new UtilDateConverter(), Date.class);
	}

}
